<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Mini Mode UI</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="RhythmCat Music Player Development Reference Manual">
<link rel="up" href="ch02.html" title="Player UI">
<link rel="prev" href="RhythmCat-Playlist-Views-UI.html" title="Playlist Views UI">
<link rel="next" href="RhythmCat-Settings-UI.html" title="Settings UI">
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="RhythmCat-Playlist-Views-UI.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">RhythmCat Music Player Development Reference Manual</th>
<td><a accesskey="n" href="RhythmCat-Settings-UI.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#RhythmCat-Mini-Mode-UI.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#RhythmCat-Mini-Mode-UI.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry" title="Mini Mode UI">
<a name="RhythmCat-Mini-Mode-UI"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="RhythmCat-Mini-Mode-UI.top_of_page"></a>Mini Mode UI</span></h2>
<p>Mini Mode UI — The mini mode UI of the player.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="RhythmCat-Mini-Mode-UI.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gui_mini.h&gt;

<span class="returnvalue">void</span>                <a class="link" href="RhythmCat-Mini-Mode-UI.html#rc-gui-mini-init" title="rc_gui_mini_init ()">rc_gui_mini_init</a>                    ();
<span class="returnvalue">RCGuiMiniData</span> *     <a class="link" href="RhythmCat-Mini-Mode-UI.html#rc-gui-mini-get-data" title="rc_gui_mini_get_data ()">rc_gui_mini_get_data</a>                ();
<span class="returnvalue">void</span>                <a class="link" href="RhythmCat-Mini-Mode-UI.html#rc-gui-mini-set-info-text" title="rc_gui_mini_set_info_text ()">rc_gui_mini_set_info_text</a>           (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="RhythmCat-Mini-Mode-UI.html#rc-gui-mini-set-lyric-text" title="rc_gui_mini_set_lyric_text ()">rc_gui_mini_set_lyric_text</a>          (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="RhythmCat-Mini-Mode-UI.html#rc-gui-mini-info-text-move" title="rc_gui_mini_info_text_move ()">rc_gui_mini_info_text_move</a>          ();
<span class="returnvalue">void</span>                <a class="link" href="RhythmCat-Mini-Mode-UI.html#rc-gui-mini-set-lyric-percent" title="rc_gui_mini_set_lyric_percent ()">rc_gui_mini_set_lyric_percent</a>       (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> percent</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="RhythmCat-Mini-Mode-UI.html#rc-gui-mini-set-play-state" title="rc_gui_mini_set_play_state ()">rc_gui_mini_set_play_state</a>          (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> state</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="RhythmCat-Mini-Mode-UI.html#rc-gui-mini-set-time-text" title="rc_gui_mini_set_time_text ()">rc_gui_mini_set_time_text</a>           (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a> pos</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="RhythmCat-Mini-Mode-UI.html#rc-gui-mini-window-hide" title="rc_gui_mini_window_hide ()">rc_gui_mini_window_hide</a>             ();
<span class="returnvalue">void</span>                <a class="link" href="RhythmCat-Mini-Mode-UI.html#rc-gui-mini-window-show" title="rc_gui_mini_window_show ()">rc_gui_mini_window_show</a>             ();
<span class="returnvalue">void</span>                <a class="link" href="RhythmCat-Mini-Mode-UI.html#rc-gui-mini-mini-mode-clicked" title="rc_gui_mini_mini_mode_clicked ()">rc_gui_mini_mini_mode_clicked</a>       ();
<span class="returnvalue">void</span>                <a class="link" href="RhythmCat-Mini-Mode-UI.html#rc-gui-mini-normal-mode-clicked" title="rc_gui_mini_normal_mode_clicked ()">rc_gui_mini_normal_mode_clicked</a>     ();
</pre>
</div>
<div class="refsect1" title="Description">
<a name="RhythmCat-Mini-Mode-UI.description"></a><h2>Description</h2>
<p>
Show the mini mode of the player.
</p>
</div>
<div class="refsect1" title="Details">
<a name="RhythmCat-Mini-Mode-UI.details"></a><h2>Details</h2>
<div class="refsect2" title="rc_gui_mini_init ()">
<a name="rc-gui-mini-init"></a><h3>rc_gui_mini_init ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rc_gui_mini_init                    ();</pre>
<p>
Initialize the mini mode window of the player. Can be used only once.
</p>
</div>
<hr>
<div class="refsect2" title="rc_gui_mini_get_data ()">
<a name="rc-gui-mini-get-data"></a><h3>rc_gui_mini_get_data ()</h3>
<pre class="programlisting"><span class="returnvalue">RCGuiMiniData</span> *     rc_gui_mini_get_data                ();</pre>
<p>
Return the data of mini mode UI structure.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The data of mini mode UI structure.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="rc_gui_mini_set_info_text ()">
<a name="rc-gui-mini-set-info-text"></a><h3>rc_gui_mini_set_info_text ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rc_gui_mini_set_info_text           (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>);</pre>
<p>
Set the text of the information label.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td>the text which shows on the information label
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="rc_gui_mini_set_lyric_text ()">
<a name="rc-gui-mini-set-lyric-text"></a><h3>rc_gui_mini_set_lyric_text ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rc_gui_mini_set_lyric_text          (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>);</pre>
<p>
Set the lyric text of the lyric label.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td>the lyric text which shows on the lyric label
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="rc_gui_mini_info_text_move ()">
<a name="rc-gui-mini-info-text-move"></a><h3>rc_gui_mini_info_text_move ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rc_gui_mini_info_text_move          ();</pre>
<p>
Make the view of the information label move if the text inside is
too loog.
</p>
</div>
<hr>
<div class="refsect2" title="rc_gui_mini_set_lyric_percent ()">
<a name="rc-gui-mini-set-lyric-percent"></a><h3>rc_gui_mini_set_lyric_percent ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rc_gui_mini_set_lyric_percent       (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> percent</code></em>);</pre>
<p>
Make the view of the lyric label move by given percent if the lyric text
is too loog.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>percent</code></em> :</span></p></td>
<td>the percent position of the lyric text
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="rc_gui_mini_set_play_state ()">
<a name="rc-gui-mini-set-play-state"></a><h3>rc_gui_mini_set_play_state ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rc_gui_mini_set_play_state          (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> state</code></em>);</pre>
<p>
Set play button state.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
<td>the state of the play button, if it's TRUE, the image of the
button is pause icon, else the image is play icon.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="rc_gui_mini_set_time_text ()">
<a name="rc-gui-mini-set-time-text"></a><h3>rc_gui_mini_set_time_text ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rc_gui_mini_set_time_text           (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a> pos</code></em>);</pre>
<p>
Set time label.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>pos</code></em> :</span></p></td>
<td>the time to set, in nanosecond.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="rc_gui_mini_window_hide ()">
<a name="rc-gui-mini-window-hide"></a><h3>rc_gui_mini_window_hide ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rc_gui_mini_window_hide             ();</pre>
<p>
Hide the mini mode window.
</p>
</div>
<hr>
<div class="refsect2" title="rc_gui_mini_window_show ()">
<a name="rc-gui-mini-window-show"></a><h3>rc_gui_mini_window_show ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rc_gui_mini_window_show             ();</pre>
<p>
Show the mini mode window.
</p>
</div>
<hr>
<div class="refsect2" title="rc_gui_mini_mini_mode_clicked ()">
<a name="rc-gui-mini-mini-mode-clicked"></a><h3>rc_gui_mini_mini_mode_clicked ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rc_gui_mini_mini_mode_clicked       ();</pre>
<p>
Enable mini mode.
</p>
</div>
<hr>
<div class="refsect2" title="rc_gui_mini_normal_mode_clicked ()">
<a name="rc-gui-mini-normal-mode-clicked"></a><h3>rc_gui_mini_normal_mode_clicked ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rc_gui_mini_normal_mode_clicked     ();</pre>
<p>
Return to normal mode.
</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.15</div>
</body>
</html>